package br.com.absolutech.study.chapter7.pag340;

import java.util.ArrayList;
import java.util.List;

public class TestWildCards {

	public static void main(String[] args) {
		
		List<Integer> myList = new ArrayList<Integer>();
		Bar bar = new Bar();
		bar.doInsert(myList);
	}
}

class Bar {
	void doInsert(List<?> list) {
		list.add(new Dog());
	}
}

class Animal { }
class Dog extends Animal { }